package com.cjx.admin.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

/**
*@Description 资源树节点
*@Verson v1.0.0
*@Author cjunxian
*@Date
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="AdminResourceNodeDTO", description="资源树节点")
public class AdminResourceNodeDTO {

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private String id;

    /**
     * 资源名称
     */
    @ApiModelProperty(value = "资源名称")
    private String resourceName;

    /**
     * 资源路径
     */
    @ApiModelProperty(value = "资源路径")
    private String url;

    /**
     * 上级id
     */
    @ApiModelProperty(value = "上级id")
    private String parentId;

    /**
     * 下级目录ids
     */
    @ApiModelProperty(value = "下级目录ids")
    private List<String> itemIds;

    /**
     * 孩子节点
     */
    @ApiModelProperty(value = "孩子节点")
    private List<AdminResourceNodeDTO> children;

}
